package com.softtown.modules.sys.dao;

import com.softtown.common.dao.BaseDao;
import com.softtown.modules.sys.entity.SysGuestMenuEntity;
import com.softtown.modules.sys.entity.SysMenuEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 游客菜单
 *
 * @author Ding Ya Yong
 */
@Mapper
@Component(value = "SysGuestMenuDao")
public interface SysGuestMenuDao extends BaseDao<SysGuestMenuEntity> {

    List<SysGuestMenuEntity> selectMenus();

    /**
     * 获取游客的菜单
     * @param  typeId
     * @return List<SysMenuEntity>
     * @author Dingyayong
     * @date 2019-06-25 18:06
     */
    List<SysMenuEntity> getGuestMenuList(@Param("type") Integer typeId, @Param("language") String language);
}
